//
//  YOKOColor.swift
//  YOKO
//
//  Created by Zoe_G on 16/5/8.
//  Copyright © 2016年 15Tec. All rights reserved.
//

import Foundation
import UIKit

extension UIColor {
    
    convenience init(rgbValue: Int) {
        let red = CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0
        let green = CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0
        let blue = CGFloat((rgbValue & 0x0000FF)) / 255.0
        self.init(red: red, green: green, blue: blue, alpha: 1.0)
    }
}

struct YOKOColor {
    
    static let MonthViewNavigationBackgroundColor = UIColor(red: 34.0/255.0, green: 34.0/255.0, blue: 34.0/255.0, alpha: 1.0)
    
    
    static let TypeColors = [UIColor(red: 35.0/255.0, green: 159.0/255.0, blue: 133.0/255.0, alpha: 1.0),
                         UIColor(red: 220.0/255.0, green: 89.0/255.0, blue: 58.0/255.0, alpha: 1.0),
                         UIColor(red: 245.0/255.0, green: 190.0/255.0, blue: 59.0/255.0, alpha: 1.0),
                         UIColor(red: 27.0/255.0, green: 156.0/255.0, blue: 226.0/255.0, alpha: 1.0),
                         UIColor(red: 141.0/255.0, green: 44.0/255.0, blue: 168.0/255.0, alpha: 1.0)]
    
    static let TypeNames = ["其他分类", "家庭生活", "学习修养", "工作成就", "运动健康"]
    
    //NewEventViewColor
    static let backImageColor = UIColor(rgbValue: 0xeeeeee)
    
    //MARK: - 月份选择表色彩
    static let monthSelectorViewBackgroundColor = YOKOColor.TypeColors[0]
    static let monthSelectorButtonNormalForegroundColor = UIColor.whiteColor()
    static let monthSelectorButtonHighlightedForegroundColor = UIColor(rgbValue: 0xe1693f)
    static let monthSelectorButtonHighlightedBackgroundColor = UIColor(rgbValue: 0xebac2b)
    
    //MARK: - Calendar
    static let calendarSelectorViewBackgroundColor = UIColor(rgbValue: 0x222222)
    static let fontBlack = UIColor(rgbValue: 0x333333)
    static let fontGray = UIColor(rgbValue: 0x666666)
    static let collectionViewBackgroundColor = UIColor(rgbValue: 0xdddddd)
    static let collectionViewItemGray = UIColor(rgbValue: 0xeeeeee)
    
}

